<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <CardDetail title="销售总额" count="￥126560">
          <template slot="card-echart">
            <span
              >周同比&nbsp;56.67%<svg
                t="1645171064869"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="3819"
                width="14"
                height="14"
              >
                <path
                  d="M765.792 455.168L512.032 176l-253.76 279.168c-21.856 24.064-13.312 43.52 19.04 43.52h117.408v322.592c0 32.544 26.24 58.752 58.624 58.752h117.44a58.56 58.56 0 0 0 58.624-58.752V498.656h117.408c32.192 0 40.832-19.456 18.976-43.488z"
                  p-id="3820"
                  fill="#1afa29"
                ></path></svg
            ></span>
            &nbsp;<span
              >日同比&nbsp;19.16%<svg
                t="1645171242820"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="5597"
                width="14"
                height="14"
              >
                <path
                  d="M402.535396 127.893516v438.930424h-164.589566l274.319356 329.282544 274.324476-329.282544h-164.589566V127.893516H402.535396z"
                  p-id="5598"
                  fill="#d81e06"
                ></path>
              </svg>
            </span>
          </template>
          <template slot="card-footer">
            <span>日销售额￥ 13563</span>
          </template>
        </CardDetail>
      </el-col>
      <el-col :span="6"
        ><CardDetail title="访问量" count="88460">
          <template slot="card-echart">
           <lineChart></lineChart>
          </template>
          <template slot="card-footer">
            <span>日访问量 1242</span>
          </template>
        </CardDetail>
      </el-col>
      <el-col :span="6"
        ><CardDetail title="支付笔数" count="124">
          <template slot="card-echart"> 
            <barChart></barChart>
          </template>
          <template slot="card-footer">
            <span>转化率 65%</span>
          </template></CardDetail
        ></el-col
      >
         <el-col :span="6"
        ><CardDetail title="运营活动效果" count="78%">
          <template slot="card-echart">
           <progressChart></progressChart>
          </template>
          <template slot="card-footer">
            <span
              >周同比&nbsp;12%<svg
                t="1645171064869"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="3819"
                width="14"
                height="14"
              >
                <path
                  d="M765.792 455.168L512.032 176l-253.76 279.168c-21.856 24.064-13.312 43.52 19.04 43.52h117.408v322.592c0 32.544 26.24 58.752 58.624 58.752h117.44a58.56 58.56 0 0 0 58.624-58.752V498.656h117.408c32.192 0 40.832-19.456 18.976-43.488z"
                  p-id="3820"
                  fill="#1afa29"
                ></path></svg
            ></span>
            &nbsp;<span
              >日同比&nbsp;8%<svg
                t="1645171242820"
                class="icon"
                viewBox="0 0 1024 1024"
                version="1.1"
                xmlns="http://www.w3.org/2000/svg"
                p-id="5597"
                width="14"
                height="14"
              >
                <path
                  d="M402.535396 127.893516v438.930424h-164.589566l274.319356 329.282544 274.324476-329.282544h-164.589566V127.893516H402.535396z"
                  p-id="5598"
                  fill="#d81e06"
                ></path>
              </svg>
            </span> </template></CardDetail
      ></el-col>
    </el-row>
  </div>
</template>

<script>
import CardDetail from "@/views/dashboard/Header/CardDetail";
import lineChart from '@/views/dashboard/Echarts/lineChart';
import barChart from '@/views/dashboard/Echarts/barChart'
import progressChart from '@/views/dashboard/Echarts/progressChart'
export default {
  name: "Card",
  components: {
    CardDetail,
    lineChart,
    barChart,
    progressChart
  },
};
</script>

<style>
</style>